#ifndef MYFAVORITES_H
#define MYFAVORITES_H

#include <QWidget>
#include <QListWidgetItem>
#include <QMenu>
#include <QList>
#include <QDesktopServices>
#include "UserLayer/GUI/MyFavoritesWidget/favoritebox.h"
#include "AbstractLayer/Network/threadmanger.h"
namespace Ui {
class MyFavorites;
}

class MyFavorites : public QWidget
{
    Q_OBJECT

public:
    explicit MyFavorites(QWidget *parent = nullptr);
    void addFavorite(QString filename,QString sendername,QString sendTime);
    ~MyFavorites();

private slots:
    void on_listWidget_customContextMenuRequested(const QPoint &pos);
    void loadFavorite();
    void removeFavorite(FavoriteBox*);
private:
    Ui::MyFavorites *ui;
    QList<FavoriteBox*> fileboxlist;

};

#endif // MYFAVORITES_H
